﻿<phone:PhoneApplicationPage 
    x:Class="FinApp.Views.LoginPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    shell:SystemTray.BackgroundColor="#1c98d1">

    <!--LayoutRoot es la cuadrícula raíz donde se coloca todo el contenido de la página-->
    <Grid x:Name="LayoutRoot" Background="#1c98d1">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene el nombre de la aplicación y el título de la página-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <Image Height="200" Name="image1" Stretch="Fill" Source="../Resources/Logo_La-Caixa.png" Width="288" />
        </StackPanel>

        <!--ContentPanel. Colocar aquí el contenido adicional-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Button Content="Login" Height="72" HorizontalAlignment="Left" Margin="-4,238,0,0" Name="loginButton" VerticalAlignment="Top" Width="240" Command="{Binding SignInCommand}" />
            <Button Content="Registrar" Height="72" HorizontalAlignment="Left" Margin="-4,300,0,0" Name="button1" VerticalAlignment="Top" Width="240" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="-4,46,0,0" Name="userNameTextBox" Text="{Binding UserName, Mode=TwoWay}" VerticalAlignment="Top" Width="466" />
            <PasswordBox Height="72" HorizontalAlignment="Left" Margin="-4,137,0,0" Name="passwordPasswordBox" VerticalAlignment="Top" Password="{Binding UserPassword, Mode=TwoWay}" Width="466" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="9,26,0,0" Name="userNameTextBlock" Text="Usuario La Caixa" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="9,117,0,0" Name="passwordTextBlock" Text="Contraseña" VerticalAlignment="Top" />
            <Image Height="1096" HorizontalAlignment="Left" Margin="127,-121,0,0" Name="image2" IsHitTestVisible="False" Stretch="Fill" VerticalAlignment="Top" Width="1725" Source="../Resources/La-Caixa.png" Opacity="0.5" />
        </Grid>
    </Grid>
 
    <!--Código de ejemplo que muestra el uso de ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Botón 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Botón 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Elemento de menú 1"/>
                <shell:ApplicationBarMenuItem Text="Elemento de menú 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
